using EasyXaf.LowCode.WorkflowEditors.Models.Activities;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;

namespace EasyXaf.LowCode.WorkflowEditors.Nodes;

public partial class StartNode
{
    private bool IsReadOnly
    {
        get => WorkflowMode >= WorkflowMode.Debug;
    }

    [CascadingParameter]
    public WorkflowMode WorkflowMode { get; set; }

    [Parameter]
    public StartActivity StartActivity { get; set; }

    [Parameter]
    public EventCallback<MouseEventArgs> AddActivityClicked { get; set; }
}